<?php 
	/*
        DreamCMS Version 1.0
		Developed by: Andrei Mikalov (Zeus)
		
		Thanks to Adam Davis
		Also thanks to Jonas Laursen for coding snippets.
	*/
	require_once("models/config.php");
	$pagename= "Members"
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<title><?php echo $sitename; ?>: <?php echo $pagename; ?></title>
<link rel="stylesheet" type="text/css" href="style.css" />

<style type="text/css">
		a {
			color: inherit;
			text-decoration: none;
		}
		a:hover {
			text-decoration: underline;
			font-weight: bold;
		}
		label {
			cursor: pointer;
			font-weight: bold;
		}
		th {
			font-weight: bold;
			padding: 8px;
			background-color: #e6e6e6;
		}
		td {
			padding: 4px;
			background-color: #f5f5f5;
		}
		td, th {
			border: 1px solid black;
		}
	</style>
</head>

<body>

<div id="container">

        <h1><?php echo $sitename; ?></h1>
        <div id="buttons">
        <a href="#"><img src="images/home.jpg" alt="Home" /></a>
        <a href="#"><img src="images/mail.jpg" alt="Mail" /></a>
        <a href="#"><img src="images/secure.jpg" alt="Support" /></a>
        </div>     

<div id="navcont">
    <ul id="nav">
    </ul>
    </div>
<div id="content_main">
           <h3><?php echo $sitename; ?> Members</h3>
            <p>
            <p><table>
        <tr>
                <th>User ID</th>
        <th>Username</th>
        <th>E-Mail</th>
        <th>View Profile</th>
 </tr>
 
<?php
 
                                                                $get_users = mysql_query("SELECT * FROM DreamCMS_Users ORDER BY User_ID DESC") or die(mysql_error());
 
                                                                while($row = mysql_fetch_assoc($get_users)){
                                                                                                       
                                                                        printf("
                                                                                <tr>
                                                                                        <td>%s</td>
                                                                                        <td>%s</td>
                                                                                        <td>%s</td>
                                                                                        <td><a href='profile.php?id=%s'>View Profile</a></td>
                                                                                </tr>
                                                                                ",$row['User_ID'], $row['Username'], $row['Email'], $row['User_ID']);
                                                                                       
                                                                }
 
?></table></p>
        </div>
    
    <div id="nav_main">
        <h4>Navigation</h4>
        <ul>
          <?php include("layout_inc/right-nav.php"); ?>
        </ul>
    </div>

<?php include("layout_inc/footer.php"); ?>

</body>
</html>
